/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/


.aide-review-plan-list-container .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row > .monaco-tl-row > .monaco-tl-twistie {
	display: none !important;
}


.aide-review-plan-list-container .monaco-list-rows .monaco-list-row {
	overflow: visible;
}

.aide-review-plan-list-container .monaco-list-rows .monaco-list-row .monaco-tl-contents {
	overflow: visible;
}

.aideagent-item-container.aideagent-review-plan {
	flex-direction: row;
	position: relative;
}

.aideagent-review-plan.will-be-dropped {
	opacity: 0.5;
}

.aideagent-item-container.aideagent-review-plan .header {
	position: absolute;
	right: 20px;
  top: 16px;
}

.aideagent-timeline {
	display: flex;
	flex-direction: column;
}

.aideagent-timeline-dot-container {
	display: grid;
	place-items: center;
	width: 16px;
	height: 16px;
	margin-top: 5px;
}

.aideagent-timeline-dot-container :is(.aideagent-timeline-dot, .aideagent-timeline-save-icon, .aideagent-timeline-drop-icon) {
	grid-area: 1 / -1 / 1 / -1;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.aideagent-timeline-dot-container .aideagent-timeline-save-icon {
	opacity: 0;
	transform: scale(0.9);
}

.aideagent-timeline-dot-container .aideagent-timeline-drop-icon {
	opacity: 0;
	transform: scale(0.9);
}

/* Show x mark on first item */
.aideagent-review-plan.will-be-dropped.first-item .aideagent-timeline-drop-icon {
	opacity: 1;
	transform: scale(1);
	color: var(--vscode-charts-red);
}

/* Keep first item title well visible */
.aideagent-review-plan.will-be-dropped.first-item .rendered-markdown:first-child h2 {
	opacity: 1;
}

.aideagent-review-plan.will-be-saved .aideagent-timeline-save-icon {
	opacity: 1;
	color: var(--vscode-charts-blue);
}

.aideagent-review-plan.is-saved .aideagent-timeline-save-icon {
	opacity: 1;
	color: var(--vscode-charts-blue);
}

.aideagent-review-plan.will-be-saved.first-item .aideagent-timeline-save-icon {
	transform: scale(1);
}

.aideagent-review-plan.is-saved.first-item .aideagent-timeline-save-icon {
	transform: scale(1);
}

.aideagent-timeline-dot-container .aideagent-timeline-dot {
	width: 5px;
	height: 5px;
	background-color: var(--vscode-editorPane-background);
	border: 1px solid var(--vscode-input-border);
	border-radius: 9999px;
}

.aideagent-timeline-line-container {
	flex-grow: 2;
	position: relative;
	z-index: 1;
}

.aideagent-timeline-line {
	position: absolute;
	top: 2px;
	bottom: -16px;
	margin: auto;
	left: 0;
	right: 0;
	width: 1px;
	height: auto;
	background-color: var(--vscode-input-border);
	transform-origin: top;
	transform: scaleY(0);
}

.aideagent-timeline-line-forerunner .aideagent-timeline-line {
	transform: scaleY(1);
	/* animation: scale-in 0.2s ease forwards; */
}

@keyframes scale-in {
	0% {
		transform: scale(0);
	}
	100% {
		transform: scale(1);
	}
}

.aideagent-plan-content {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.aideagent-item-container.aideagent-review-plan .value {
	margin-top: 0;
	padding-block: 4px;
	padding-inline: 6px;
}

/* Description */
.aideagent-item-container.aideagent-review-plan .rendered-markdown {
	color: var(--vscode-list-deemphasizedForeground);
}

/* Title */
.aideagent-item-container.aideagent-review-plan .rendered-markdown:first-child h2 {
	font-size: 13px;
	line-height: 18px;
	font-weight: 400;
	color: var(--vscode-foreground);
	margin-block: 0;
	display: inline;
}

.aideagent-item-container.aideagent-review-plan .rendered-markdown:first-child::before {
	content: attr(data-index) '.';
	margin-inline-end: 2px;
	color: var(--vscode-list-deemphasizedForeground);
}

.aideagent-header {
	display: flex;
	align-items: baseline;
}

